package com.xzq.erp.domain.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.xzq.erp.enums.AfterSalesServiceStatus;
import com.xzq.erp.enums.Priority;
import com.xzq.erp.enums.ProblemType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 售后服务表
 * </p>
 *
 * @author xzq
 * @since 2025-05-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_after_sales_service")
public class AfterSalesService implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 客户ID
     */
    @TableField("customer_id")
    private Long customerId;

    /**
     * 问题类型:1-产品质量,2-安装问题,3-使用咨询,4-维修服务,5-退换货,6-其他
     */
    @TableField("problem_type")
    private ProblemType problemType;

    /**
     * 售后优先级:1-普通,2-紧急
     */
    @TableField("priority")
    private Priority priority;

    /**
     * 处理状态:0-待处理,1-处理中,2-已完成,3-已关闭
     */
    @TableField("status")
    private AfterSalesServiceStatus status;

    /**
     * 满意度评分:1-5分
     */
    @TableField("satisfaction_score")
    private Integer satisfactionScore;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;


}
